placessidebar: set Other Locations uri
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 18 Aug 2015 22:34:21 +0000 (19:34 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 18 Aug 2015 22:34:21 +0000 (19:34 -0300)
By assigning an URI to Other Locations item, we
can programaticaly select it. Fixes a bug in Nautilus,
where the Other Locations item is unselected imediately
after being clicked.

gtk/gtkplacessidebar.c

index 0e64cd425fe28c369acc16cc684682148f091a2c..3049e5a77880d919a12e203a8d12afd8d775a2e7 100644 (file)
@@ -1305,7 +1305,7 @@ update_places (GtkPlacesSidebar *sidebar)
 
       add_place (sidebar, PLACES_OTHER_LOCATIONS,
                  SECTION_OTHER_LOCATIONS,
-                 _("Other Locations"), icon, NULL,
+                 _("Other Locations"), icon, "other-locations:///",
                  NULL, NULL, NULL, 0, _("Show other locations"));
 
       g_object_unref (icon);